import request from './index.js'
export const url = () => {
	return 'http://792509sg45.zicp.fun/'
}

export const getABoxMealByBid = (data) => { //根据门店id查询套餐
	return request({
		url: 'Coupon/getABoxMealByBid',
		method: 'get',
		data: data
	})
}
export const getCouponByBid = (data) => { //根据门店id查询团购券
	return request({
		url: 'Coupon/getCouponByBid',
		method: 'get',
		data: data
	})
}
export const isUB = (data) => { //判断余额是否足够
	return request({
		url: 'Appointment/isUB',
		method: 'get',
		data: data
	})
}
export const addA = (data) => { //添加订单
	return request({
		url: 'Appointment/addA',
		method: 'post',
		data: data
	})
}
//显示门店
export const quershop = (data) => {
	return request({
		url: 'shop/quershop',
		method: 'get',
		data: data,
	})
}
//查询门店封面图片
export const quershopurl = (data) => {
	return request({
		url: 'shop/quershopurl',
		method: 'get',
		data: data,
	})
}
//查询城市门店名称querbysname
export const querbysname = (data) => {
	return request({
		url: 'shop/querbysname',
		method: 'get',
		data: data,
	})
}
//查询门店详情querbyidshop
export const querbyidshop = (data) => {
	return request({
		url: 'shop/querbyidshop',
		method: 'get',
		data: data,
	})
}
//查询包厢列表querybox
export const querybox = (data) => {
	return request({
		url: 'shop/querybox',
		method: 'get',
		data: data,
	})
}
//查询包厢套餐querymealbyid
export const querymealbyid = (data) => {
	return request({
		url: 'shop/querymealbyid',
		method: 'get',
		data: data,
	})
}
//查询门店优惠卷querycouponbyidbid
export const querycouponbyidbid = (data) => {
	return request({
		url: 'shop/querycouponbyidbid',
		method: 'get',
		data: data,
	})
}
//登录注册logins
export const logins = (data) => {
	return request({
		url: 'User/openid',
		method: 'get',
		data: data,
	})
}
//查询充值列表querypay
export const querypay = (data) => {
	return request({
		url: 'pay/querypay',
		method: 'get',
		data: data,
	})
}
//充值并且添加记录addrecord
export const addrecord = (data) => {
	return request({
		url: 'pay/addrecord',
		method: 'get',
		data: data,
	})
}
//显示记录queryrecordbyid
export const queryrecordbyid = (data) => {
	return request({
		url: 'pay/queryrecordbyid',
		method: 'get',
		data: data,
	})
}
//添加图片upload
export const upload = (data) => {
	return request({
		url: 'img/upload',
		method: 'post',
		data: data,
	})
}
//修改图片地址updatauserbyurl,
export const updatauserbyurl = (data) => {
	return request({
		url: 'User/updatauserbyurl',
		method: 'get',
		data: data,
	})
}
//修改用户昵称upadatauserbyname
export const upadatauserbyname = (data) => {
	return request({
		url: 'User/upadatauserbyname',
		method: 'get',
		data: data,
	})
}
//修改用户电话号码updatauserbyphone
export const updatauserbyphone = (data) => {
	return request({
		url: 'User/updatauserbyphone',
		method: 'get',
		data: data,
	})
}
//购买优惠卷addmycoupon
export const addmycoupon = (data) => {
	return request({
		url: 'pay/addmycoupon',
		method: 'get',
		data: data,
	})
}
//查询用户卡卷queryMycoupon
export const queryMycoupon = (data) => {
	return request({
		url: 'pay/queryMycoupon',
		method: 'get',
		data: data,
	})
}
//查询优惠卷信息querybycoupon
export const querybycoupon = (data) => {
	return request({
		url: 'pay/querybycoupon',
		method: 'get',
		data: data,
	})
}
//查询用户是否有进行的订单queryorderbyid
export const queryorderbyid = (data) => {
	return request({
		url: 'order/queryorderbyid',
		method: 'get',
		data: data,
	})
}